﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using System;

namespace Safover.LidarCollector.Core
{
    public class OpticalMaserReadingsUpdatedEventArgs : DeviceReadingsUpdatedEventArgs
    {
        public override DeviceType DeviceType => DeviceType.OpticalMaser;

        /// <summary>
        /// 内触发频率
        /// </summary>
        public double? InternalTriggerFrequency { get; set; }

        /// <summary>
        /// 电流实际值
        /// </summary>
        public double? ElectricityRealValue { get; set; }

        /// <summary>
        /// LD温度
        /// </summary>
        public double? LDTemperature { get; set; }

        /// <summary>
        /// 激光晶体温度
        /// </summary>
        public double? LaserCrystalTemperature { get; set; }

        /// <summary>
        /// 倍晶体温度
        /// </summary>
        public double? FrequencyDoublingCrystalTemperature { get; set; }

        /// <summary>
        /// 激光器是否发光中
        /// </summary>
        public bool IsLasarOpen { get; set; }

        /// <summary>
        /// 激光器工作时长
        /// </summary>
        public TimeSpan? LaserWorkingTime { get; set; }

        public override string ToString()
        {
            return $"发光中={IsLasarOpen}, 内触发频率={InternalTriggerFrequency}, 电流实际值={ElectricityRealValue}, LD={LDTemperature}, 激光晶体温度={LaserCrystalTemperature}, 倍晶体温度={FrequencyDoublingCrystalTemperature}, 激光器工作时长={LaserWorkingTime};";
        }
    }

}
